wage=2000
sale=int(input("请输入该员工销售额"))
t=0
if sale<=3000:
    t=2000
elif 3000<sale<=7000:
    t=wage+(sale-3000)*0.1
elif 7000<sale<=10000:
    t=wage+4000*0.1+(sale-7000)*0.15
elif 10000<sale:
    t=wage+4000*0.1+3000*0.15+(sale-10000)*0.2
print(t)
